import request from '../utils/request';

// 拉取传统广告详情
export function fetch({ payload }) {
  return request(`/api/dsp/ad/creative/group/detail?data=${payload}`);
}

// 创建
export function submit({ payload }) {
	return request(null, {
		method: 'POST',
		url: '/api/dsp/ad/creative/group/create',
	  data: payload
	});
}

// 更新
export function update({ payload }) {
	return request(null, {
		method: 'POST',
		url: '/api/dsp/ad/creative/group/update',
	  data: payload
	});
}
